package text;

public class Text2 {
    public static void main(String[] args) {
        Thread rose=new Thread(){
            public void run(){
                for (int i=5;i>0;i--){
                    System.out.println("rose:let's go");
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
                System.out.println("a aaaa");
                System.out.println("putong");
            }
        };

        Thread jack=new Thread(){
            public void run(){
                while (true){
                    System.out.println("jack:you jump i jump");
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        };
        rose.start();
        jack.setDaemon(true);
        jack.start();
    }
}
